const { defineConfig } = require("@vue/cli-service");
module.exports = defineConfig({
  transpileDependencies: true,
  publicPath: "./",
  devServer: {
    port: 8000,
    proxy: {
      "/api": {
        target: "http://47.105.49.190:8080", // 修改为新的穿透地址
        changeOrigin: true,
        pathRewrite: {
          "^/api": "/", // 不重写路径，保持原样
        },
      },
    },
  },
});
